package com.wclass.service.impl;

import com.wclass.entity.PostsInfo;
import com.wclass.mapper.PostsInfoMapper;
import com.wclass.service.IPostsInfoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 帖子 服务实现类
 * </p>
 *
 * @author SEN
 * @since 2018-12-27
 */
@Service
public class PostsInfoServiceImpl extends ServiceImpl<PostsInfoMapper, PostsInfo> implements IPostsInfoService {


    @Override
    public PostsInfo selectById(Serializable id) {
        //增加查看数
        baseMapper.updateSeeNum(id);
        return super.selectById(id);
    }

    @Override
    public PostsInfo selectContainDelRecord(Serializable id) {
        return baseMapper.selectContainDelRecord(id);
    }
}
